4D Chart v13CT ON MENU |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Chart v13
CT ON MENU
|
CT ON MENU ( area ; method ) | ||||||||
Parameter | Type | Description | ||||||
area | Longint |
![]() |
4D Chart area | |||||
method | String |
![]() |
Name of the method to call | |||||
The CT ON MENU command executes method each time a menu command is activated in either the User or Custom Menus environments. The menu command can also be called by using the CT DO COMMAND command, as long as the menu command is called in method.
Parameter | Description |
$1 | A Long integer containing the ID for the 4D Chart area. |
$2 | A Long integer containing the menu item number. |
$3 | A Long integer containing the number of the modifier key pressed. |
Value | Modifier Key |
0 | No modifier |
1 | Ctrl (Windows) or Command (Macintosh) key |
2 | Shift key |
4 | Alt (Windows) or Option (Macintosh) key |
8 | Control key (Macintosh) |
C_LONGINT($1;$2;$3)
This example launches the MenuProc event method.
CT ON MENU(Area;"MenuProc")
The MenuProc method controls the user’s access to menu commands. If either the Save as Template or Properties menu command is selected, the user is presented with an alert and the menu selection is ignored. All other menu items are executed without interruption.
Following is the code for the MenuProc method.
Product: 4D Chart
Theme: CT Area Control
Number:
14517
Created: 4D Chart 1